/*----------------------------------------------------------------------
  Filnavn: "lcd162.h"

  Beskrivelse: Gransefladebeskrivelse, "class lcd162"

  Driver for alfanumerisk display PowerTip PC1602-F.
  Display-controller = HD44780U (LCD-II).

  Max. MPU-clock-frekvens = 16 MHz (Tclk = 62,5 ns)

  Tilkobling : PORTx (4 bit mode) :
  [LCD]	            [Portx]
  RS (pin4)  ------  bit 0
  RW (pin 5) ------  bit 1
  E  (pin 6) ------  bit 2
  DB4 (pin 11) ---   bit 4
  DB5 (pin 12) ---   bit 5
  DB6 (pin 13) ---   bit 6
  DB7 (pin 14) ---   bit 7

  Henning Hargaard 9.marts 2004
-----------------------------------------------------------------------*/
#ifndef Disp162_define
#define Disp162_define

// Definition af anvendt PORT :
// (her er valgt PORT C) :
#define DDR_lcd	 DDRC
#define PIN_lcd	 PINC
#define PORT_lcd PORTC 

#pragma used+
//  Class lcd162
//  Public:
void LCDInit();
void LCDClear();
void LCDGotoXY(unsigned char x, unsigned char y);
void LCDDispChar(char tegn);
void LCDDispStrRAM(char *str);
void LCDDispStrFLASH(flash char *str);
void LCDDispInteger(int i);
void LCDLoadUDC(unsigned char UDCNr, flash unsigned char *UDCTab);
void LCDOnOffControl(unsigned char cursor, unsigned char blink);
void LCDCursorLeft();
void LCDCursorRight();
void LCDShiftLeft();
void LCDShiftRight();
#pragma used-
#endif 
//----------------------------------------------------------------------